students = []

with open('data.txt', 'r', encoding='utf-8') as f:
    # 处理一行的情况
    # line = f.readline()
    # print(line)

    lines = f.readlines()

    for item in lines:
        # print(item)
        tokens = item.split(' ')
        tokens[2] = tokens[2].replace('\n', '')
        # print(tokens)

        students.append(tokens)

print(students)





